package news.newsmain.service;

import news.newsmain.dao.IMainNewsDao;
import news.newsmain.dao.MainNewsDaoImpl;
import news.newsmain.entity.NewsPublish;
import news.newstopic.dao.AddTopicDaoImpl;
import news.newstopic.dao.IAddTopicDao;
import news.util.PageBean;

import java.util.List;

/**
 * @author Administrator
 */
public class MainNewsServiceImpl implements IMainNewsService {
    private IMainNewsDao  iMainNewsDao = new MainNewsDaoImpl();
    /**
     * @Author GongXL
     * @Description  查询所有
     * @Date 17:08 2022/2/27
     * @Param []
     * @return java.util.List<news.newsmain.entity.NewsPublish>
     **/
    @Override
    public List<NewsPublish> getNewsPublisList() {
        return iMainNewsDao.getNewsPublisList();
    }
    /**
     * @Author GongXL
     * @Description  分页查询
     * @Date 17:06 2022/2/27
     * @Param []
     * @return java.util.List<news.newsmain.entity.NewsPublish>
     **/
    @Override
    public PageBean getNewsPublisPageList(PageBean pageBean) {
        return iMainNewsDao.getNewsPublisPageList(pageBean);
    }
    /**
     * @Author GongXL
     * @Description
     * @Date 16:50 2022/3/3
     * @Param [news.util.PageBean]
     * @return java.lang.Integer
     **/
    @Override
    public Integer getNewsPublisCount(PageBean pageBean) {
        return iMainNewsDao.getNewsPublisCount(pageBean);
    }
}
